<title>模板设置</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>问答设置</cite></a>
    <a><cite>基本设置</cite></a>
    <a><cite>模板设置</cite></a>
  </div>
</div>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
        <div class="layui-card-header">模板设置</div>
      
        <div class="layui-card-body">

          <form class="layui-form" lay-filter="J_ajaxForm" action="{:url('wendasns/config/post')}" method="post">
          <input type="hidden" name="type" value="view"/>
          
        <div class="layui-form-item">
          <label class="layui-form-label">电脑模板</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <select name="computer" lay-filter="J_computerSelect">
              {volist name="data.computer" id="item"}
                <option value="{$item}"{if $config.computer eq $item} selected{/if}>{$item}</option>
              {/volist}
              </select>
            </div>
          </div>
        </div>
        
          <div class="layui-form-item">
          <label class="layui-form-label">手机模板</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
            	<input type="radio" name="iswap" value="1" title="开启"{if $config.iswap eq 1} checked{/if}>
            	<input type="radio" name="iswap" value="0" title="关闭"{if $config.iswap eq 0} checked{/if}>
            </div>
          </div>
        </div>
        
          <div class="layui-form-item">
          <label class="layui-form-label">手机模板</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <select name="wap" lay-filter="J_mobileSelect">
              {volist name="data.wap" id="item"}
                <option value="{$item}"{if $config.wap eq $item} selected{/if}>{$item}</option>
              {/volist}
              </select>
            </div>
            <div class="layui-form-mid layui-word-aux">开启手机模板后才生效</div>
          </div>
        </div>
            
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_ajax_submit_btn"><i class="layui-icon layui-icon-ok-circle"></i>提交</button>
              </div>
            </div>
          </form>
          
        </div>
      </div>
    </div>
  </div>
</div>
<script>
layui.use(['form'], function(){
  var form = layui.form;
  
  form.render();

});
</script>